package com.labyrinth.core;

import com.badlogic.gdx.graphics.GL10;

public class WildcardBrick extends MovableBrick
{

	public WildcardBrick(float x, float y, float height, float width, int inDirection)
	{
		super(x, y, height, width, inDirection);
		this.setScale(height, width);

		this.setScale(100);
		setDrawType(GL10.GL_TRIANGLE_STRIP);
		setMesh();
	}

	public void onTouch(Vector2D point)
	{
		if (checkInnerCircle(point) == true)
		{
			if(getDirection() == 1)
			{
				setDirection(2);
			}
			if(getDirection() == 2)
			{
				setDirection(3);
			}
			if(getDirection() == 3)
			{
				setDirection(4);
			}
			if(getDirection() == 4)
			{
				setDirection(1);
			}
		}
	}

}
